#include <stdio.h>

int main() {
    int num[3][4]; 
    int max, row = 0, col = 0;
    printf("请输入3×4矩阵的元素:\n");
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 4; j++) {
            scanf("%d", &num[i][j]);
        }
    }
    max = num[0][0];
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 4; j++) {
            if (num[i][j] > max) {
                max = num[i][j];
                row = i;
                col = j;
            }
        }
    }
    printf("矩阵中的最大值是: %d\n", max);
    printf("它位于第%d行, 第%d列\n", row + 1, col + 1);
    
    return 0;
}
